home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 114 / PC Guia 114.iso / Software / Utils / The Gimp 2.2.1 / gimp-help-2-0.6-setup.exe / {app} / share / gimp / 2.0 / help / en / ch02s04s12.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-12-19  |  14.8 KB  |  356 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6.     <title>4.12.┬áText and Fonts</title>
  7.     <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
  8.     <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
  9.     <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
  10.     <link rel="start" href="index.html" title="GIMP User Manual" />
  11.     <link rel="up" href="ch02s04.html" title="4.┬áWorking with Images" />
  12.     <link rel="prev" href="ch02s04s11.html" title="4.11.┬áPalettes" />
  13.     <link rel="next" href="ch02s04s13.html" title="4.13.┬áStroking a Selection or Path" />
  14.   </head>
  15.   <body>
  16.     <div xmlns="" class="navheader">
  17.       <table width="100%" summary="Navigation header">
  18.         <tr>
  19.           <th colspan="3" align="center" id="chaptername">4.┬áWorking with Images</th>
  20.         </tr>
  21.         <tr>
  22.           <td width="20%" align="left"><a accesskey="p" href="ch02s04s11.html">Prev</a>┬á</td>
  23.           <th width="60%" align="center" id="sectionname">4.12.┬áText and Fonts</th>
  24.           <td width="20%" align="right">┬á<a accesskey="n" href="ch02s04s13.html">Next</a></td>
  25.         </tr>
  26.       </table>
  27.       <hr />
  28.     </div>
  29.     <div class="sect2" lang="en" xml:lang="en">
  30.       <div class="titlepage">
  31.         <div>
  32.           <div>
  33.             <h3 class="title"><a id="gimp-text"></a>4.12.┬áText and Fonts</h3>
  34.           </div>
  35.         </div>
  36.       </div>
  37.       <a id="id3425568" class="indexterm"></a>
  38.       <div class="informalfigure">
  39.         <div class="mediaobject">
  40.           <img src="../images/using/text-example.png" />
  41.           <div class="caption">
  42.             <p>
  43.       Example of a text item, showing the boundary of the text
  44.       layer.  (Font: Utopia Bold)
  45.     </p>
  46.           </div>
  47.         </div>
  48.       </div>
  49.       <p>
  50.     One of the greatest improvements of GIMP 2.0 over GIMP 1.2 is in
  51.     the handling of text.  In GIMP 2.0 and 2.2, each text item goes in a
  52.     separate Text layer, and you can come back later to the layer and
  53.     edit the text in it.  You can also move the text around in the
  54.     image, or change the font, or the font size.  You can use any
  55.     font available on your system.  You can control justification,
  56.     indentation, and line spacing.  
  57.   </p>
  58.       <p>
  59.     Actually, you can operate on a text layer in the same ways as any
  60.     other layer, but doing so often means giving up the ability to
  61.     edit the text without losing the results of your work.
  62.   </p>
  63.       <p>
  64.     To understand some of the idiosyncracies of text handling, it may
  65.     help for you to realize that a text layer contains more
  66.     information than the pixel data that you see:  it also contains a
  67.     representation of the text in a text-editor format.  You can see
  68.     this in the text-editor window that pops up while you are using the
  69.     Text tool.  Every time you alter the text, the image layer is
  70.     redrawn to reflect your changes. 
  71.   </p>
  72.       <p>
  73.     Now suppose you create a text layer, and then operate on it in
  74.     some way that does not involve the Text tool:  rotate it, for
  75.     example.  Suppose you then come back and try to edit it using the
  76.     Text tool.  As soon as you edit the text, the Text tool will
  77.     redraw the layer, wiping out the results of the operations you
  78.     performed in the meantime.
  79.   </p>
  80.       <p>
  81.     Because this danger is not obvious, the Text tool tries to protect
  82.     you from it.  If you operate on a text layer, and then later try
  83.     to edit the text, a message pops up, warning you that your
  84.     alterations will be undone, and giving you three options:  (1)
  85.     edit the text anyway; (2) cancel; (3) create a new text layer with
  86.     the same text as the existing layer, leaving the existing layer
  87.     unchanged. 
  88.   </p>
  89.       <div class="simplesect" lang="en" xml:lang="en">
  90.         <div class="titlepage">
  91.           <div>
  92.             <div>
  93.               <h4 class="title"><a id="id3425661"></a>Embellishing Text</h4>
  94.             </div>
  95.           </div>
  96.         </div>
  97.         <div class="informalfigure">
  98.           <div class="mediaobject">
  99.             <img src="../images/using/logo-examples.png" />
  100.             <div class="caption">
  101.               <p>
  102.          Four fancy text items created using logo scripts:  "alien
  103.          neon", "bovination", "frosty", and "chalk".  Default
  104.          settings were used for everything except font size.
  105.       </p>
  106.             </div>
  107.           </div>
  108.         </div>
  109.         <p>
  110.       There are many things you can do to vary the appearance of text
  111.       beyond just rendering it with different fonts or different
  112.       colors.  By converting a text item to a selection or a path, you
  113.       can fill it, stroke the outlines, transform it, or generallly
  114.       apply the whole panoply of GIMP tools to get interesting
  115.       effects.  As a demonstration of some of the possibilities, try
  116.       out the "logo" scripts in the Toolbox menu, at
  117.       <span class="guimenu">Xtns</span>-><span class="guisubmenu">Script-Fu</span>-><span class="guisubmenu">Logos</span>.
  118.       Each of these scripts allows you to enter some text, and then
  119.       creates a new image showing a logo constructed out of that text.
  120.         If you would like to modify one of these scripts, or construct
  121.         a logo script of your own, the <a href="ch02s09.html" title="9.┬áUsing Script-Fu Scripts">Using Script-Fu</a> and  <a href="ch02s10.html" title="10.┬áA Script-Fu Tutorial">Script-Fu
  122.         Tutorial</a> sections should help you get started.  Of
  123.         course, you don't need Script-Fu to create these sorts of
  124.         effects, only to automate them.
  125.     </p>
  126.       </div>
  127.       <div class="simplesect" lang="en" xml:lang="en">
  128.         <div class="titlepage">
  129.           <div>
  130.             <div>
  131.               <h4 class="title"><a id="gimp-fonts"></a>Adding Fonts</h4>
  132.             </div>
  133.           </div>
  134.         </div>
  135.         <p>
  136.       For the most authoritative and up-to-date information on fonts
  137.       in GIMP, consult the <a href="http://gimp.org/unix/fonts.html" target="_top">Fonts in GIMP 2.0</a>
  138.       page at the GIMP web site.  This section attempts to give you a
  139.       helpful overview.
  140.     </p>
  141.         <p>
  142.       GIMP uses the FreeType 2 font engine to render fonts, and a
  143.       system called Fontconfig to manage them.  GIMP will let you use
  144.       any font in Fontconfig's font path; it will also let you use any
  145.       font it finds in GIMP's font search path, which is set on the
  146.       <a href="ch04s18s16.html" title="18.16.┬áData Folders">Font Folders</a> page
  147.       of the Preferences dialog.  By default, the font search path
  148.       includes a system GIMP-fonts folder (which you should not alter,
  149.       even though it is actually empty), and a
  150.       <tt class="filename">fonts</tt> folder inside your personal GIMP
  151.       directory.  You can add new folders to the font search path if
  152.       it is more convenient for you.
  153.     </p>
  154.         <p>
  155.       FreeType 2 is a very powerful and flexible system.  By default,
  156.       it supports the following font file formats:
  157.     </p>
  158.         <div class="itemizedlist">
  159.           <ul type="disc">
  160.             <li>
  161.               <p>
  162.           TrueType fonts (and collections)
  163.         </p>
  164.             </li>
  165.             <li>
  166.               <p>
  167.           Type 1 fonts
  168.         </p>
  169.             </li>
  170.             <li>
  171.               <p>
  172.           CID-keyed Type 1 fonts
  173.         </p>
  174.             </li>
  175.             <li>
  176.               <p>
  177.           CFF fonts
  178.         </p>
  179.             </li>
  180.             <li>
  181.               <p>
  182.           OpenType fonts (both TrueType and CFF variants)
  183.         </p>
  184.             </li>
  185.             <li>
  186.               <p>
  187.           SFNT-based bitmap fonts
  188.         </p>
  189.             </li>
  190.             <li>
  191.               <p>
  192.           X11 PCF fonts
  193.         </p>
  194.             </li>
  195.             <li>
  196.               <p>
  197.           Windows FNT fonts
  198.         </p>
  199.             </li>
  200.             <li>
  201.               <p>
  202.           BDF fonts (including anti-aliased ones)
  203.         </p>
  204.             </li>
  205.             <li>
  206.               <p>
  207.           PFR fonts
  208.         </p>
  209.             </li>
  210.             <li>
  211.               <p>
  212.           Type42 fonts (limited support)
  213.         </p>
  214.             </li>
  215.           </ul>
  216.         </div>
  217.         <p>
  218.       You can also add modules to support other types of font files.
  219.       See <a href="http://www.freetype.org/freetype2/index.html#features" target="_top">FREETYPE
  220.       2</a> for more information.
  221.     </p>
  222.         <p><b>Linux.┬á</b>
  223.     On a Linux system, if the Fontconfig utility is set up as usual,
  224.     all you need to do to add a new font is to place the file in the
  225.     directory <tt class="filename">~/.fonts</tt>.  This will make the font
  226.     available not only to GIMP, but to any other program that uses
  227.     Fontconfig.  If for some reason you want the font to be available
  228.     to GIMP only, you can place it in the <tt class="filename">fonts</tt>
  229.     subdirectory of your personal GIMP directory, or some other
  230.     location in your font search path.  Doing either will cause the
  231.     font to show up the next time you start GIMP.  If you want to use
  232.     it in an already running GIMP, press the
  233.     <span class="emphasis"><em>Refresh</em></span> button in the <a href="ch04s14.html" title="14.┬áFonts dialog">Fonts dialog</a>.
  234.       </p>
  235.         <p><b>Windows.┬á</b>
  236.     The easiest way to install a font is to drag the file onto the
  237.     Fonts directory and let the shell do its magic.  Unless you've done
  238.     something creative, it's probably in its default location of
  239.     <tt class="filename">C:\windows\fonts</tt> or
  240.     <tt class="filename">C:\winnt\fonts</tt>.  Sometimes double-clicking on
  241.     a font will install it as well as display it; sometimes it only
  242.     displays it.  This method will make the font available not only to
  243.     GIMP, but also to other Windows applications.
  244.       </p>
  245.         <p>
  246.       To install a Type 1 file, you need both the
  247.       <tt class="filename">.pfb</tt> and <tt class="filename">.pfm</tt>
  248.       files. Drag the one that gets an icon into the fonts folder.
  249.       The other one doesn't strictly need to be in the same directory
  250.       when you drag the file, since it uses some kind of search
  251.       algorithm to find it if it's not, but in any case putting it in
  252.       the same directory does no harm. 
  253.     </p>
  254.         <p>
  255.       In principle, GIMP can use any type of font on Windows that 
  256.       FreeType can handle; however, for fonts that Windows can't
  257.       handle natively, you should install them by placing the font
  258.       files in the <tt class="filename">fonts</tt> folder of your personal
  259.       GIMP directory, or some other location in your font search
  260.       path. The support Windows has varies by version.  All that 
  261.       GIMP runs on support at least TrueType, Windows FON, and Windows
  262.       FNT.  Windows 2000 and later support Type 1 and OpenType.
  263.       Windows ME supports OpenType and possibly Type 1 (but the most
  264.       widely used Windows GIMP installer does not officially support
  265.       Windows ME, although it may work anyway). 
  266.     </p>
  267.         <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
  268.           <table border="0" summary="Note">
  269.             <tr>
  270.               <td rowspan="2" align="center" valign="top" width="25">
  271.                 <img alt="[Note]" src="../images/note.png" />
  272.               </td>
  273.               <th align="left">Note</th>
  274.             </tr>
  275.             <tr>
  276.               <td colspan="2" align="left" valign="top">
  277.                 <p>
  278.     GIMP uses Fontconfig to manage fonts on Windows as well as Linux.
  279.     The instructions above work because Fontconfig by default uses the
  280.     Windows fonts directory, i. e., the same fonts that Windows uses
  281.     itself.  If for some reason your Fontconfig is set up differently,
  282.     you will have to figure out where to put fonts so that GIMP can
  283.     find them:  in any case, the <tt class="filename">fonts</tt> folder of
  284.     your personal GIMP directory should work.
  285.       </p>
  286.               </td>
  287.             </tr>
  288.           </table>
  289.         </div>
  290.       </div>
  291.       <div class="simplesect" lang="en" xml:lang="en">
  292.         <div class="titlepage">
  293.           <div>
  294.             <div>
  295.               <h4 class="title"><a id="id3426038"></a>Font Problems</h4>
  296.             </div>
  297.           </div>
  298.         </div>
  299.         <p>
  300.       Problems with fonts have probably been responsible for more GIMP
  301.       2 bug reports than any other single cause, although they have
  302.       become much less frequent in the most recent releases in the 2.0
  303.       series.  In most cases they have been caused by malformed font
  304.       files giving trouble to Fontconfig.  If you experience crashes
  305.       at startup when GIMP scans your font directories, the best
  306.       solution is to upgrade to a version of Fontconfig newer than
  307.       2.2.0.  As a quick workaround you can start gimp with the
  308.       <tt class="filename">--no-fonts</tt> command-line option, but then
  309.       you will not be able to use the text tool.
  310.     </p>
  311.         <p>
  312.       Another known problem is that Pango 1.2 cannot load fonts that
  313.       don't provide an Unicode character mapping. (Pango is the text
  314.       layout library used by GIMP.)  A lot of symbol fonts fall into
  315.       this category. On some systems, using such a font 
  316.       can cause GIMP to crash. Updating to Pango 1.4 will fix this
  317.       problem and makes symbol fonts available in GIMP. 
  318.     </p>
  319.         <p>
  320.       A frequent source of confusion occurs on Windows systems, when
  321.       GIMP encounters a malformed font file and generates an error
  322.       message:  this causes a console window to pop up so that you can
  323.       see the message.  <span class="emphasis"><em>Do not close that console window.
  324.       It is harmless, and closing it will shut down GIMP.</em></span>
  325.       When this happens, it often seems to users that GIMP has
  326.       crashed.  It hasn't: closing the console window causes Windows
  327.       to shut GIMP down.  Unfortunately, this annoying situation is
  328.       caused by an interaction between Windows and the libraries
  329.       that GIMP links to:  it cannot be fixed within GIMP.  All you
  330.       need to do, though, if this happens, is minimize the console
  331.       window and ignore it.
  332.     </p>
  333.       </div>
  334.     </div>
  335.     <div class="navfooter">
  336.       <hr />
  337.       <table width="100%" summary="Navigation footer">
  338.         <tr>
  339.           <td width="40%" align="left"><a accesskey="p" href="ch02s04s11.html">Prev</a>┬á</td>
  340.           <td width="20%" align="center">
  341.             <a accesskey="u" href="ch02s04.html">Up</a>
  342.           </td>
  343.           <td width="40%" align="right">┬á<a accesskey="n" href="ch02s04s13.html">Next</a></td>
  344.         </tr>
  345.         <tr>
  346.           <td width="40%" align="left" valign="top">4.11.┬áPalettes┬á</td>
  347.           <td width="20%" align="center">
  348.             <a accesskey="h" href="index.html">Home</a>
  349.           </td>
  350.           <td width="40%" align="right" valign="top">┬á4.13.┬áStroking a Selection or Path</td>
  351.         </tr>
  352.       </table>
  353.     </div>
  354.   </body>
  355. </html>
  356.